{foreach $error_data as $key=>$error}
    <table class="errorTable">
        <tr>
            <td class="left">{$key+1} =></td>
            <td class="right bold">Error</td>
        </tr>
        <tr>
            <td class="left"></td>
            <td class="right">
                {printError error=$error id=1}<br/>
                {printError error=$error id=2}<br/>
                {printError error=$error id=3}
            </td>
        </tr>
    </table>
{/foreach}

{foreach $debug_data as $key=>$debug}
    <table class="debugTable">
        <tr>
            <td class="left">{$key+1} =></td>
            <td class="right bold">{$debug.description}</td>
        </tr>
        <tr>
            <td class="left"></td>
            <td class="right">
                {if $debug.value|is_array}
                    {foreach $debug.value as $k1=>$v1}
                        {if $v1|is_array}
                            <p class="debug1">[{$k1}] =></p>
                            {foreach $v1 as $k2=>$v2}
                                {if $v2|is_array}
                                    <p class="debug2">[{$k2}] =></p>
                                    {foreach $v2 as $k3=>$v3}
                                        {if $v3|is_array}
                                            <p class="debug3">[{$k3}] =></p>
                                            {foreach $v3 as $k4=>$v4}
                                                {if $v4|is_array}
                                                    <p class="debug4">[{$k4}] =></p>
                                                    {foreach $v4 as $k5=>$v5}
                                                        {if $v5|is_array}
                                                            <p class="debug5">[{$k5}] =></p>
                                                            {foreach $v5 as $k6=>$v6}
                                                                {if $v6|is_array}
                                                                    <p class="debug6">[{$k6}] =></p>
                                                                    {foreach $v6 as $k7=>$v7}
                                                                        {if $v7|is_array}
                                                                            <p class="debug7">[{$k7}] => array</p>
                                                                        {else}
                                                                            <p class="debug7">[{$k7}] => {$v7}</p>
                                                                        {/if} 
                                                                    {/foreach}
                                                                    </p>
                                                                {else}
                                                                    <p class="debug6">[{$k6}] => {$v6}</p>
                                                                {/if} 
                                                            {/foreach}
                                                            </p>
                                                        {else}
                                                            <p class="debug5">[{$k5}] => {$v5}</p>
                                                        {/if} 
                                                    {/foreach}
                                                    </p>
                                                {else}
                                                    <p class="debug4">[{$k4}] => {$v4}</p>
                                                {/if} 
                                            {/foreach}
                                            </p>
                                        {else}
                                            <p class="debug3">[{$k3}] => {$v3}</p>
                                        {/if} 
                                    {/foreach}
                                    </p>
                                {else}
                                    <p class="debug2">[{$k2}] => {$v2}</p>
                                {/if} 
                            {/foreach}
                            </p>
                        {else}
                            <p class="debug1">[{$k1}] => {$v1}</p>
                        {/if}                        
                    {/foreach}
                {else}
                    <p class="debug_first">{$debug.value}</p>
                {/if}
            </td>
        </tr>
    </table>
{/foreach}